ns16550/PCI: fix skipping of devices
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:29:53 +0000 (11:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:29:53 +0000 (11:29 +0100)
commit91f2ad76aa82aebb9ebf0f959a8218429838c0a8
tree4987bdfe11ff61553b4f2e977c079a102fa76181
parent0b2be0bd82b889d71be1c2004fb3099c7dba4c6d
ns16550/PCI: fix skipping of devices

Selecting between single/multiple BAR mode should happen after checking
whether to skip the present device, or else multi-BAR devices won't be
skipped correctly, due to port_idx getting set to zero in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
master commit: c34fe0468acc61aca62422483c37a1309708f1cb
master date: 2018-11-30 12:07:33 +0100
xen/drivers/char/ns16550.c